package libs.yzx.zaza;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import java.util.Calendar;

/**
 * Created by Administrator on 2016/7/14
 */
public class StudyActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Calendar c = Calendar.getInstance();
        c.setTimeInMillis(System.currentTimeMillis());
        int position = c.get(Calendar.DAY_OF_YEAR);

        String[] stys = {"Adrd", "Adrd", "HJC", "HJC"};
        String sty = stys[position % stys.length];

        TextView tv = new TextView(this);
        tv.setText(sty);
        setContentView(tv);
    }
}
